document.addEventListener("deviceready", function(){
    var widget = document.querySelector('alljs-widget');
    if (widget){
        var msg = document.createElement('message-bottom');
        msg.innerHTML = '<message-down>device: '+device.platform+'</message-down>';
        msg.style.setProperty('display', 'block');
        widget.appendChild(msg);
    }
}, false);